package feedCons;
public class Feeder {
	Lion l=new Lion();
	Monkey m=new Monkey();
	Pigeon p=new Pigeon();
	private String feedername;
	public Feeder(){
		
	}
	public Feeder(String feedername){
		this.feedername=feedername;
	}
	public String getFeederName() {
		return feedername;
	}
	public void setFeederName(String feedername) {
		this.feedername = feedername;
	}
	public void feedAnimal(Lion l){
		l.eat();
		System.out.println("feed by "+this.feedername);
	}
	public void feedAnimal(Monkey m){
		m.eat();
		System.out.println("feed by "+this.feedername);
	}
	public void feedAnimal(Pigeon p){
		p.eat();
		System.out.println("feed by "+this.feedername);
	}
}
